﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using System.Data;
namespace BUS
{
    public class WarrantyBL
    {
        WarrantyDAL dal = new WarrantyDAL();


        #region[Warranty_SelectALL]
        public List<DTO.WarrantyDTO> Warranty_SelectALL()
        {
            return dal.Warranty_SelectALL();
        }
        #endregion

        #region[Warranty_SelectByCustomerID]
        public DTO.WarrantyDTO Warranty_SelectByCustomerID(int id)
        {
            return dal.Warranty_SelectByCustomerID(id);
        }
        #endregion

        #region[Warranty_SelectByID]
        public DTO.WarrantyDTO Warranty_SelectByID(int id)
        {
            return dal.Warranty_SelectByID(id);
        }
        #endregion

        #region[Warranty_SelectImageByValue]
        public DTO.WarrantyDTO Warranty_SelectImageByValue(byte[] image)
        {
            return dal.Warranty_SelectImageByValue(image);
        }
        #endregion

        #region[Warranty_SelectBySellMoblieID]
        public DTO.WarrantyDTO Warranty_SelectBySellMoblieID(int id)
        {
            return dal.Warranty_SelectBySellMoblieID(id);
        }
        #endregion

        #region[Warranty_SelectByByCustomerName]
        public DataTable Warranty_SelectByCustomerName(string name)
        {
            return dal.Warranty_SelectByCustomerName(name);
        }
        #endregion

        #region [Warranty_Insert]
        public bool Warranty_Insert(DTO.WarrantyDTO war)
        {
            return dal.Warranty_Insert(war);
        }
        #endregion

    }
}
